package com.tfleo.mealssenger.object;

public class Place {
	public final int id;
	public final String name;
	public final String address;
	public final String description;
	public final String image;
	public final String category;
	public final int time;
	public final float longitude;
	public final float latitude;
	public final int numCheckin;
	public final float rating;
	private int mDistance;
	private String mMessage;
	
	public Place(int id, String name, String address, String description, String image, String category,
			int time, float longitude, float latitude, int numCheckin, float rating) {
		this.id = id;
		this.name = name;
		this.address = address;
		this.description = description;
		this.image = image;
		this.category = category;
		this.time = time;
		this.longitude = longitude;
		this.latitude = latitude;
		this.numCheckin = numCheckin;
		this.rating = rating;
	}
	
	public int getDistance() {
		return mDistance;
	}
	
	public void setDistance(int distance) {
		mDistance = distance; 
	}
	
	
	public String getMessage() {
		return mMessage;
	}
	
	public void setMessage(String foods) {
		if(foods.isEmpty() || foods.compareTo("null") == 0) {
			mMessage = "";
		} else {
			mMessage = "Check out " + foods + " foods here!";
		}
	}
}
